package com.ruoyi.project.hcy.product.mapper;

import com.ruoyi.project.hcy.product.domain.product.Product;
import com.ruoyi.project.hcy.product.domain.product.ProductNameVo;
import com.ruoyi.project.hcy.product.domain.product.ProductVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ProductMapper
 * @Author SAI
 * @Date 2020/9/17 19:20
 * @Description ProductMapper
 * @Version 1.0
 */
@Repository
public interface ProductMapper {
    int countSeriesProductById(Long seriesId);

    int countStyleProductById(Long styleId);

    int countSpecificationProductById(Long specificationId);

    List<ProductVo> selectProductList(Product product);

    Product checkProductNameUnique(String productName);

    int insertProduct(Product product);

    Product selectProductById(Long productId);

    int updateProduct(Product product);

    int deleteProductByIds(Long[] longs);

    List<ProductVo> selectFavoritesProductList(Map<String ,Object> map);

    ProductNameVo selectProductNameById(Long productId);

    List<ProductVo> selectShowList(Product product);

    int changeStatus(Long[] longs);
}
